// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init({
    env: 'zhihuiyiliao-3gmkxujs5ab28bb1'
})

// 云函数入口函数
exports.main = async (event, context) => {
    cloud.database().collection('uploadInfo').doc(event.id).update({
        data: {
            commentList: event.commentList
        }
    })
}